import { Provide } from '@midwayjs/decorator';
import { CoolController, BaseController } from '@cool-midway/core';
import { OriginalInfoEntity } from '../../entity/info';
import { Context } from 'egg';

/**
 * 商品
 */
@Provide()
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: OriginalInfoEntity,
  insertParam: async (ctx: Context) => {
    return {
      userId: ctx.user.id,
    };
  },
  pageQueryOp: {
    keyWordLikeFields: ['title', 'subTitle', 'keywords','categoryId',],
    fieldEq: ['status'],
  },
})
export class AppOriginalInfoController extends BaseController {
  
}
